package ca.llsutherland.squash.news;

import ca.llsutherland.squash.administrator.AdministratorsFixture;
import ca.llsutherland.squash.domain.Administrator;
import ca.llsutherland.squash.domain.Clock;
import ca.llsutherland.squash.domain.NewsItem;
import ca.llsutherland.squash.domain.helper.NewsItemsHelper;

public class NewsFixture {

    public static NewsItem createUnpersistedNewsItem(String news, Clock dateCreated, Clock dateUpdated, Clock displayDate, Clock removeDate) {
        Administrator createdBy = AdministratorsFixture.createNewAdministrator("Lindsay", "Sutherland");
        return NewsItemsHelper.createUnpersistedNewsItem(news, dateCreated, dateUpdated, displayDate, removeDate, createdBy);
    }

}
